package org.example.ims.DTO;


import com.fasterxml.jackson.annotation.JsonUnwrapped;
import lombok.Data;
import org.example.ims.Entity.Base.Product;

@Data
public class ProductWithInventoryDTO {
    @JsonUnwrapped
    private Product product;

    public ProductWithInventoryDTO(Product product, Integer quantity) {
        this.product = product;
        this.product.setProductStock(quantity);
    }
}
